package com.yuyunbo.es.restclient.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: yuyunbo-1154363414@qq.com
 * @Date: 2020/5/28 10:49
 * @Description:
 */
@ConfigurationProperties(prefix = "es.restclient")
public class EsConfigProperties {
    private String esNodes;
    private String esPort = "9900";
    private int connectTimeout = 10000;
    private int maxRetryTimeoutMillis = 30000;
    private int maxSize = 10;

    public String getEsNodes() {
        return esNodes;
    }

    public void setEsNodes(String esNodes) {
        this.esNodes = esNodes;
    }

    public String getEsPort() {
        return esPort;
    }

    public void setEsPort(String esPort) {
        this.esPort = esPort;
    }

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public int getMaxRetryTimeoutMillis() {
        return maxRetryTimeoutMillis;
    }

    public void setMaxRetryTimeoutMillis(int maxRetryTimeoutMillis) {
        this.maxRetryTimeoutMillis = maxRetryTimeoutMillis;
    }

    public int getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(int maxSize) {
        this.maxSize = maxSize;
    }
}
